import request from "@/axios/request";
import url from "@/axios/url";
const { mesUrl } = url();

// 生产分析
export function getProductAnalyze(params = {}) {
  return request({
    url: `${mesUrl}mesProductFinish/getProductAnalyze`,
    method: "get",
    params,
  });
}
// 领料情况
export function getPickMaterialInfo(params = {}) {
  return request({
    url: `${mesUrl}mesProductFinish/getPickMaterialInfo`,
    method: "get",
    params,
  });
}

// 异常情况-详情
export function getDefectProdInfo(params = {}) {
  return request({
    url: `${mesUrl}mesProductFinish/getDefectProdInfo`,
    method: "get",
    params,
  });
}
// 领料明细导出
export const exportUrl = `${mesUrl}mesProductFinish/export`;
// 异常明细-导出
export const exportUrlDefect = `${mesUrl}mesProductFinish/exportDefect`;
